package com.xxx.mch.feign;

import com.xxx.mch.domain.dto.UserDto;
import com.xxx.mch.domain.po.Department;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
@Slf4j
public class FeignClientFallback implements HiveFeignClient{


    @Override
    public List<Department> getSubOrganization(String organizationCode) {
        log.info("接口调用失败");
        return new ArrayList<>();
    }

    @Override
    public UserDto getUserByOrganization(String organizationCode, Integer page) {
        log.info("接口调用失败");
        return new UserDto();
    }

    @Override
    public UserDto getUserByOrganization(String organizationCode) {
        log.info("接口调用失败");
        return  new UserDto();
    }
}
